<template>
    <div>
         <count-down :start="start"
            @countDown="changeCount"
            @click.native="sendCode"
        ></count-down>
    </div>
</template>

<script>
import CountDown from '../components/CountDown.vue'
export default {
    data() {
        return {
            start: false,
        }
    },
    components:{CountDown},
    mounted () {
       
    },
    methods: {
     changeCount() {
        this.start = false;
    },
     sendCode() {
        if (this.start) {
        return;
        }
        this.start = true;
     }

    }
};
</script>
